import React from 'react'
import { useSelector } from 'react-redux'

function User() {
    const userInfo=useSelector(state=>state.user.userInfo)
  return (
    <div>
      <img src={userInfo.avatar} alt="" />
      <h1>{userInfo.nickname}</h1>
    </div>
  )
}

export default User
